/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kuti.grp5;

import java.awt.geom.Line2D;
import kuti.IObservable;

/**
 * 
 * This interface brings together all elements of the radar to execute 
 * instructions similar for all.
 * 
 * @author Marc Schorderet <marc.schorderet@edu.hefr.ch>
 * 
 * @version 1.0
 * 
 */




public interface IRadarElement extends IObservable {
    
    
    /**
     * Check if the the element intersects with the line.
     * 
     * @param object    Line of the object
     * 
     * @return Returns true of the line intersects with the obstacle, else
     * returns false.
     * 
     */
    
    public boolean isIntersects(Line2D object);
    
    /**
     * Get the distance between the first ponit of the line to the intersection
     * point with the element.
     * 
     * @param object    Line of the object
     * 
     * @return Returns the distance to intersection.
     * 
     */
    
    public double intersectsDistance(Line2D object);
    
}
